package com.flex.mobile.util;

import flex.messaging.FlexSession;
import flex.messaging.FlexSessionListener;

public class MyFlexSessionListener implements FlexSessionListener {

   @Override
   public void sessionCreated(FlexSession session) {
      System.out.println("FlexSession created: " + session.getId());
      session.addSessionDestroyedListener(this); 
   }

   @Override
   public void sessionDestroyed(FlexSession session) {
      System.out.println("FlexSession destroyed: " + session.getId()); 
   }

}
